package com.itheima.health.dao;

import com.itheima.health.pojo.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 预约DAO
 */
public interface OrderDao {
    List<Integer> findSetmealIds();

    String findSetmealCountById(Integer setmealId);


    Order getOrderByOrderDateAndMemberId(@Param("orderDate") String orderDate, @Param("memberId") Integer memberId);

    void addOrder(Order order);

    Order getOrderById(Integer id);

    Integer getCountOrderNumber(String time);


    Integer getCountWeekOrderNumber();

    Integer getCountMonthOrderNumber();

    Integer getCountVisitsNumber(@Param("time") String time, @Param("orderStatus") String orderStatus);

    Integer getCountWeekVisitsNumber(String orderStatus);

    Integer getCountMonthVisitsNumber(String orderStatus);

    List<Map<String, Object>> getHotSetmeal();

    List<Map<String, Object>> getHotSetmeal2();

    Integer getCount();
}
